Teacher Version

Hero Image
Hero Image

Forward Until Near

Topics Covered

  • Ultrasonic Sensor
  • Thresholds

Virtual Robot: MoveUntilNearVR.rbg

Physical Robot: MoveUntilNear.rbg

What will you learn?

In this activity, you will follow along with the video. You will learn how to detect obstacles using your sonar sensor.

Check Your Understanding

  1. If the robot is facing a wall, it will move until:
    1. The Ultrasonic Sensor has traveled 50 cm
    2. The Ultrasonic Sensor is 50 cm from the wall
    3. The robot moves 50 cm total
    4. The robot detects an obstacle beyond 50 cm away

ClosedClick here for the Answers

B. The Ultrasonic Sensor is 50 cm from the wall

© 2016 Robomatter, Inc.

Portions of this product are manufactured under license from Carnegie Mellon University.